<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
var Flower = function () {

}
var xiaoming = {
    sendFlower : function (target) {
        var flower = new Flower();
        target.receiveFlower(flower)
        //receiveFower
    }
}
 var A = {
    receiveFlower:function (flower) {
        console.log('收到花'+flower);
    }
 }
 xiaoming.sendFlower(A)
</script>
</body>
</html>